package com.xiyu.service.errorCode.customer;

import com.xiyu.service.framework.exception.ErrorCode;

/**
* customer 错误码枚举类
*
* customer 客户管理，使用 1005001000段
*/
public interface CustomerErrorCode {
    Integer ERROR_CODE_START_CODE = 1005001000;

    ErrorCode CUSTOMER_INFO_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 1, "客户信息不存在");
    ErrorCode CUSTOMER_WEBSITE_NOT_EXIST = new ErrorCode(ERROR_CODE_START_CODE + 2, "客户网址不存在");
    ErrorCode CUSTOMER_INFO_NAME_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 3, "存在相同名称的客户");
    ErrorCode CUSTOMER_CONTACT_NAME_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 4, "存在相同姓名：{}的客户联系人");
    ErrorCode CUSTOMER_CONTACT_MAIL_NAME_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 5, "姓名：{}的客户联系人下存在相同的邮箱：{}");
    ErrorCode CUSTOMER_CONTACT_PHONE_NAME_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 6, "姓名：{}的客户联系人下存在相同的手机号：{}");
    ErrorCode CUSTOMER_CONTACT_SOCIAL_MEDIA_NAME_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 7, "姓名：{}的客户联系人下存在相同的社交媒体，媒体类型：{}，媒体账号：{}");
    ErrorCode CUSTOMER_WEBSITE_DUPLICATE = new ErrorCode(ERROR_CODE_START_CODE + 8, "存在的相同网址：{}");
    ErrorCode CUSTOMER_NO_DEAL_STATUS_PUT_IN_POOL = new ErrorCode(ERROR_CODE_START_CODE + 8, "成交状态的客户不能放入公海");
    ErrorCode CUSTOMER_ALREADY_PUT_IN_POOL = new ErrorCode(ERROR_CODE_START_CODE + 8, "客户已经放入公海");
}